<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://meevle.com/web/tags/MeevleTag.tld" prefix="meevle" %>
	
	
	
			<c:choose>
				<c:when test="${param.username != null && param.password != null}">
					<meevle:checkAvailabilityUser object="${userDelegate}" username="${param.username}" />
					<c:choose>
						<c:when test="${isAvailable}">
							<meevle:createUser password="${param.password}" object="${userDelegate}" username="${param.username}" />
							<c:if test="${isCreated}">
								<c:redirect url="/Community.do" />
							</c:if>
						</c:when>
					</c:choose>
				</c:when>
			</c:choose>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<c:forEach var="cssFile" items="${cssFiles}">
		<link rel="stylesheet" type="text/css" href="${cssFile }" />
</c:forEach>

<c:forEach var="script" items="${scripts}">
	<script type="text/javascript" src="${script}"></script>
</c:forEach>
<script type="text/javascript" src="com/meevle/web/js/manageComments.js" ></script>
	<script type="text/javascript" src="com/meevle/web/js/manageSets.js" ></script>
	
	<script type="text/javascript">  
             AudioPlayer.setup("http://localhost:5080/Meevle/com/meevle/web/audioplayer/player.swf", {  
                 width: 290  
             });  
     </script>  
<title>Meevle</title>
</head>
<body>
<div id="page-container">
	
	<jsp:include page="Header.jsp" />
	
		<div id="site-navigation" class="clearfix">
			${navigation}
		</div><!-- end page-navigation -->
		
		<div id="page-content" class="clearfix">
			
			<h1>Home</h1>
			
			<h2>Meevle <span>(Info &amp; registration)</span></h2>
			<div class="inner-box clearfix">
			
			<div id="sidebar">
				${sidebar}
			</div>
			<!-- end sidebar -->
			
			
			<c:choose>
				<c:when test="${param.page == null}"><jsp:include page="${firstPage}" /></c:when>
				<c:otherwise><jsp:include page="${param.page}" /></c:otherwise>
			</c:choose>
			</div>	
		</div><!-- end page-content -->
		<jsp:include page="Footer.jsp" />
		
	</div><!-- end page-container -->

</body>
</html>